<script>on openBackgroundglobal mapLocFam, footprintsFam, completeFamif there is a window "mainMenu" then close window "mainMenu"repeat with x = 1 to the number of bg buttonsset the icon of bg button x to 0if the short name of bg button x is in footprintsFam thenset the style of bg button x to transparentelse set the style of bg button x to opaqueend repeatif mapLocFam is not empty then ¬set the icon of bg button mapLocFam to "openCrossGray"if the number of items in footprintsFam > 4 and completeFam ≠ "done" thenput "done" into completeFamanswer "Congratulations! You have completed this stack."end ifend openBackground</script>